@import "./vma/index";
@import "./pageapp/index";

:root {
  --tree-bg-color: rgba(64, 158, 255, 0.22);
  --left-width: 320px;
  --ztree-width: 600px;
}

.ui-full-h {
  height: 100%;
}

html {
  color: #2f332a;
}

.test-tree {
  .components {
    .dom-line {
      margin: 2px;
      border-bottom: 1px gray dotted;
      height: 1px;
    }
    .com-category-wrap {
      width: var(--left-width);
      flex-wrap: wrap;
    }
    .domBtnDiv {
      display: block;
      padding: 2px;
      // border: 1px gray dotted;
      background-color: var(--tree-bg-color);
    }
    .domBtnStyle {
      display: inline-block;
      cursor: pointer;
      padding: 2px;
      margin: 2px 10px;
      border: 1px gray solid;
      background-color: #ffe6b0;
    }
    .domBtnDrag {
      display: inline-block;
      cursor: move;
      padding: 2px;
      margin: 2px 10px;
      border: 1px gray solid;
      background-color: #ffe6b0;
    }
    .domBtn_Disabled {
      display: inline-block;
      cursor: default;
      padding: 2px;
      margin: 2px 10px;
      border: 1px gray solid;
      background-color: #dfdfdf;
      color: #999999;
    }
  }

  .dom-tmp {
    position: absolute;
    font-size: 12px;
  }

  .contentWrap .right {
    flex: 1;
  }

  ul.ztree {
    background: var(--tree-bg-color);
    width: var(--ztree-width);
    height: 50%;
    overflow-y: auto;
    overflow-x: auto;
    padding: 0;
    position: relative;

    &:after {
      content: 'drag to here';
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, - 50%);
    }

    * {
      font-size: 14px;
    }

    .treeCtrlBtn {
      display: none;
      margin-left: 5px;
      margin-right: 5px;
      padding: 5px;
      cursor: pointer;
    }

    [treenode_a] {
      display: inline-block;
    }

    [treenode_a] * {
      vertical-align: top;
    }

    [treenode_a]:hover {
      .treeCtrlBtn {
        display: inline-block;
      }
    }

    li span.button.remove {
      margin-left: 20px;
    }

    li a.curSelectedNode {
      background-color: #6664cc;
      color: #ffffff;
    }
  }

  .propWrap {
    width: 100%;
    height: 50%;
    overflow: auto;
  }
}


html,
body {
  height: 100%;
  overflow: hidden;
  margin: 0;
}

.window-wrap {
  iframe {
    display: block;
    width: 100%;
    height: 100%;
  }
}
